package com.sneaker.shower.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sneaker.shower.entity.domain.order.PayOrderDO;
import com.sneaker.shower.entity.domain.user.UserLevelDO;
import com.sneaker.shower.entity.dto.WxPayParamDTO;
import org.apache.commons.lang3.tuple.Pair;

import java.math.BigDecimal;

/**
 * @author Hechangjian
 * @version 1.0
 * @className UserLevelService
 * @date 2019/12/01 1:19
 * @description
 * @program bath
 */
public interface UserLevelService extends IService<UserLevelDO> {
    Pair<UserLevelDO, BigDecimal> updateUserLevel(PayOrderDO payOrderDO, WxPayParamDTO wxPayParamDTO);

    Pair<UserLevelDO, BigDecimal> updateUserPayLevel(UserLevelDO userLevelDO, Long userGuid);

    Pair<UserLevelDO, BigDecimal> getUserLevelBigDecimalPair(Long userGuid, UserLevelDO highestLevel);
}
